package cn.tedu.tea.mapper;

import cn.tedu.tea.domain.OrderGoods;
import cn.tedu.tea.domain.vo.OrderGoodsListVO;
import cn.tedu.tea.domain.vo.OrderGoodsStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderGoodsMapper {
    int insert(OrderGoods orderGoods);
    int deleteById(Integer id);
    int deleteByIds(Integer[] ids);
    int update(OrderGoods orderGoods);

    int countByOrderNo(String orderNo);
    int countByOrderNoAndNotId(String orderNo, Integer id);

    OrderGoodsStandardVO getStandardById(Integer id);
    List<OrderGoodsListVO> list();

}
